From 2ebe1ef6f27009dfb10b46796680219bca597493 Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Mon, 23 May 2011 15:02:00 -0500 Subject: [PATCH] bgo#642929 - Don't infinite-loop in GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER If the user pressed Enter to confirm the file chooser while the filename entry was empty, then gtk_file_chooser_default_should_respond() would go back and forth between the cases for handling the filename entry and the file list. --- gtk/gtkfilechooserdefault.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index ad44a9edd3..6fdafa04e0 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -8633,7 +8633,8 @@ gtk_file_chooser_default_should_respond (GtkFileChooserEmbed *chooser_embed) if (is_empty) { - if (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE) + if (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE + || impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER) return FALSE; goto file_list; -- 2.30.2